<?php
// 添加科室
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");

$department = $_POST["department"];

$insert = "INSERT INTO department_infos SET department_Name = '" . $department . "'";
$result_insert = mysqli_query($connect_DB,$insert);
if($result_insert){
    echo "<script>alert('添加成功！');location='admin_ControlDepartments.php';</script>";
}else{
    echo "<script>alert('添加失败!请重试！');history.go(-1);</script>";
}

$connect_DB->close();
?>